﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using Entity;

namespace Controller
{
    public class StockInController : ControllerBase
    {
        public int addStockIn(string stockInNo, int vendId, DateTime date)
        {
            StockIn stockIn=new StockIn();
            stockIn.No = stockInNo;
            stockIn.VendId = vendId;
            stockIn.Date = date;
            stockIn.Remark = "";
            Sdc.StockIns.InsertOnSubmit(stockIn);
            Sdc.SubmitChanges();
            return stockIn.Id;

        }
    }
}
